package CreateThread;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic="c.CreateThread.NewThread")
public class NewThread {
    public static void main(String[] args) {
        Thread thread = new Thread() {
            @Override
            public void run() {
                log.debug("running");
            }
        };
        thread.setName("t1");
        thread.start();
        log.debug("running");
    }
}
